import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import router from './router'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)
Vue.config.productionTip = false

Vue.mixin({
  methods: {
    bindAPI (path) {
      return `https://r1735185i8.51mypc.cn/api/${path}`
    },
    bindImagePath (path) {
      return `https://r1735185i8.51mypc.cn/file/image/${path}`
    },
    cutTimeString (str) {
      if (str) {
        return str.split('.')[0]
      }
    }
  }
})

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
